From ab6647cc442e4d7b829772daf554cc7087581534 Mon Sep 17 00:00:00 2001 From: Jordi Mallach Date: Thu, 12 Feb 2026 23:29:36 +0100 Subject: [PATCH] Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds. Forwarded: no Last-Update: 2025-05-14 Gbp-Pq: Name ftbfs_alpha_ia64.patch --- makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/makefile b/makefile index b68998441..8ac5c0bad 100644 --- a/makefile +++ b/makefile @@ -195,6 +195,14 @@ else ifneq ($(filter arm%,$(UNAME_M)),) PLATFORM := arm else ifneq ($(filter arm%,$(UNAME_P)),) PLATFORM := arm +else ifneq ($(filter ia64,$(UNAME_M)),) +PLATFORM := ia64 +else ifneq ($(filter ia64,$(UNAME_P)),) +PLATFORM := ia64 +else ifneq ($(filter loongarch64,$(UNAME_M)),) +PLATFORM := loong64 +else ifneq ($(filter loongarch64,$(UNAME_P)),) +PLATFORM := loong64 else ifneq ($(filter powerpc,$(UNAME_P)),) PLATFORM := powerpc else ifneq ($(filter riscv64%,$(UNAME_M)),) @@ -415,9 +423,39 @@ else BIGENDIAN := 1 endif endif + +ifeq ($(findstring alpha,$(UNAME)),alpha) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring ia64,$(UNAME)),ia64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring loongarch64,$(UNAME)),loongarch64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring riscv64,$(UNAME)),riscv64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + ifneq (,$(findstring s390x,$(UNAME))) BIGENDIAN := 1 endif + # FreeBSD ifneq (,$(findstring powerpc,$(UNAME))) ifneq (,$(findstring powerpc64le,$(UNAME))) -- 2.30.2